function printId(id: string | number) {
    if (typeof id === 'string') {
        // id is of type 'string'
        console.log(id.toUpperCase());
    } else {
        // here, id is of type 'number'
        console.log(id)
    }
}